import request from '@/utils/request'

// 查询物品入库列表
export function listGoodsIn(query) {
  return request({
    url: '/goods/goodsIn/list',
    method: 'get',
    params: query
  })
}

// 查询物品入库详细
export function getGoodsIn(inId) {
  return request({
    url: '/goods/goodsIn/' + inId,
    method: 'get'
  })
}

// 新增物品入库
export function addGoodsIn(data) {
  return request({
    url: '/goods/goodsIn',
    method: 'post',
    data: data
  })
}

// 修改物品入库
export function updateGoodsIn(data) {
  return request({
    url: '/goods/goodsIn',
    method: 'put',
    data: data
  })
}

// 删除物品入库
export function delGoodsIn(inId) {
  return request({
    url: '/goods/goodsIn/' + inId,
    method: 'delete'
  })
}
